<template>
	<view>测试 ajxs</view>
	<button @click="go" type="warn">跳转</button>
	<view>{{ store.obj.name }}</view>
	<view>{{ store.obj.age }}</view>
	<view>{{ store.count }}</view>
</template>

<script setup>
import request from '@/utils/request.js'; //导入 request
import { onLoad } from '@dcloudio/uni-app';
import { ref } from 'vue';
//导入 store数据
import { useCount } from '@/stores/count.js';
// 使用  可随意修改
const store = useCount();

console.log('store', store.obj.name);

// const getuser = async () => {
// 	request.get('/driver/users');
// };

onLoad(() => {
	// getuser();
	uni.utils.message('错误');
});

const go = () => {
	// uni.utils.push('/pages/my/index');
	uni.utils.push('/subpkg_task/detail/index');
};
</script>

<style lang="scss" scoped></style>
